﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MainSite.Master" AutoEventWireup="true" CodeBehind="testeditFormEEE.aspx.cs" Inherits="BSCMFF.Web.Pages.working.testeditFormEEE" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

<telerik:RadGrid ID="RadGridAlreadyAssignedEmployees" runat="server" AutoGenerateColumns="false" >
        <MasterTableView DataKeyNames="ID">
            <Columns>                   
                <telerik:GridBoundColumn DataField="Firstname" 
                    FilterControlAltText="Filter Firstname column" HeaderText="Firstname" 
                    SortExpression="Firstname" UniqueName="Firstname">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="Lastname" 
                    FilterControlAltText="Filter Lastname column" HeaderText="Lastname" 
                    SortExpression="Lastname" UniqueName="Lastname">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="Email" 
                    FilterControlAltText="Filter Email column" HeaderText="Email" 
                    SortExpression="Email" UniqueName="Email">
                </telerik:GridBoundColumn>
                    
                    
                <telerik:GridBoundColumn DataField="EmployeeID" 
                    FilterControlAltText="Filter EmployeeID column" HeaderText="EmployeeID" 
                    SortExpression="EmployeeID" UniqueName="EmployeeID">
                </telerik:GridBoundColumn>
                    
                <telerik:GridBoundColumn DataField="SBU.Name" HeaderText="SBU" 
                    SortExpression="SBU.Name" UniqueName="SBU.Name">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="Job_Position" 
                    FilterControlAltText="Filter Job_Position column" HeaderText="Job_Position" 
                    SortExpression="Job_Position" UniqueName="Job_Position">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="User2.Fullname" 
                    FilterControlAltText="Filter Evaluator column" HeaderText="Evaluator" 
                    SortExpression="User2.Fullname" UniqueName="Evaluator">
                    
                </telerik:GridBoundColumn>
                <telerik:GridTemplateColumn>
                    <HeaderTemplate>
                        <asp:Label ID="HeaderEvaluator" runat="server" Text="Evaluator" ></asp:Label>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <asp:Label ID="LabelManager" runat="server" Text=' <%# Eval("User2.ID") %>' /> 
                        <bsc:EmployeeSimpleSelection ID="ess" runat="server"  SelectedUserID='<%# Eval("User2.ID") %>' />
                    </ItemTemplate>
                    <EditItemTemplate>
                        <bsc:EmployeeSimpleSelection ID="ess" runat="server"  SelectedUserID='<%# Bind("Manager_FK") %>' /> 
                    </EditItemTemplate>
                </telerik:GridTemplateColumn>

                <telerik:GridButtonColumn CommandName="Edit" Text="Edit" 
                    UniqueName="Editcolumn">
                </telerik:GridButtonColumn>
            </Columns>
            <EditFormSettings EditFormType="WebUserControl" UserControlName="~/UserControls/EditWebControl_ChangeEvaluator.ascx" >
            </EditFormSettings>
        </MasterTableView>
        
    </telerik:RadGrid>

    <asp:Button ID="b" runat="server" Text="button" OnClick="b_click" />
</asp:Content>
